<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$header_charset}>" />
<link href="<{$akurl}>images/admin/admin.css" rel="stylesheet" type="text/css">
<script language="javascript" src="include/common.js"></script>
</head>
<body>
<div class="block"></div>
<div class="block"></div>
<table width="99%" border="0" align="center" cellpadding="5" cellspacing="1" class="commontable">
	<form action="admincp.php?action=spiders&job=saveeditrule&id=<{$id}>" method="post" name="editrule">
	<tr class="header">
		<td colspan="10"><div class="righttop"><a href="http://www.akcms.com/manual/spider.htm" target="_blank"><{$lan.help}></a></div><{$lan.editrule}>&nbsp;-&nbsp;<a href="admincp.php?action=spiders&job=previewrule&id=<{$id}>" target="_blank" style="color:#FFF"><{$lan.preview}></a>&nbsp;-&nbsp;<a href="admincp.php?action=spiders&job=exportspiderrule&id=<{$id}>" target="_blank" style="color:#FFF"><{$lan.export}></a></td>
		</tr>
	<tr>
		<td><{$lan.rulename}></td>
		<td><input type="text" value="<{$rule.spiderrulename}>" name="rulename" class="mustoffer" onfocus="must(this)"></td>
	</tr>
	<tr>
		<td><{$lan.exampleurl}></td>
		<td><input type="text" value="<{$rule.exampleurl}>" id="exampleurl" name="exampleurl" class="mustoffer" onfocus="must(this)" size="70">&nbsp;<input value="<{$lan.pagesource}>" type="button" onclick="window.open('admincp.php?action=spiders&job=source&url=' + $('exampleurl').value, '');"></td>
	</tr>
	<tr>
		<td><{$lan.title}></td>
		<td><input type="text" name="title" value="<{$rule.title}>" size="70" class="mustoffer" onfocus="must(this)"></td>
	</tr>
	<tr>
		<td><{$lan.shorttitle}></td>
		<td><input type="text" name="shorttitle" value="<{$rule.shorttitle}>" size="70"></td>
	</tr>
	<tr>
		<td><{$lan.aimurl}></td>
		<td><input type="text" name="aimurl" value="<{$rule.aimurl}>" size="70"></td>
	</tr>
	<tr>
		<td><{$lan.author}></td>
		<td><input type="text" name="author" value="<{$rule.author}>" size="15"></td>
	</tr>
	<tr>
		<td><{$lan.source}></td>
		<td><input type="text" name="source" value="<{$rule.source}>" size="15"></td>
	</tr>
	<tr>
		<td><{$lan.editor}></td>
		<td><input type="text" name="editor" value="<{$rule.editor}>" size="15"></td>
	</tr>
	<tr>
		<td><{$lan.template}></td>
		<td>
		<select name="template">
		<option value=""><{$lan.default}></option>
		<{$selecttemplates}>
		</select>
		</td>
	</tr>
<script>
document.editrule.template.value = "<{$rule.template}>";
</script>
	<tr>
		<td><{$lan.digest}></td>
		<td><input type="text" name="digest" value="<{$rule.digest}>" size="70"></td>
	</tr>
	<tr>
		<td><{$lan.data}></td>
		<td><input type="text" name="data" value="<{$rule.text}>" size="70" class="mustoffer" onfocus="must(this)"></td>
	</tr>
	<tr>
		<td><{$lan.keywords}></td>
		<td><input type="text" name="keywords" value="<{$rule.keywords}>" size="70"></td>
	</tr>
	<tr>
		<td><{$lan.filename}></td>
		<td><input type="text" name="filename" value="<{$rule.filename}>" size="60"></td>
	</tr>
	<tr>
		<td><{$lan.picture}></td>
		<td><input type="text" name="picture" value="<{$rule.picture}>" size="70"></td>
	</tr>
	<tr>
		<td><{$lan.order}></td>
		<td><input type="text" name="order" value="<{$rule.orderby}>"></td>
	</tr>
	<tr>
		<td><{$lan.ifcreatehtml}></td>
		<td>
		<select name="html">
		<option value="1"><{$lan.yes}></option>
		<option value="0"><{$lan.no}></option>
		</select>
		</td>
	</tr>
<script>
document.editrule.html.value = "<{$rule.html}>";
</script>
		<{$exts}>
		<{$fields}>
	<tr>
		<td><{$lan.character}></td>
		<td><textarea name="character" cols="50" rows="5" style="width:100%"><{$rule.character}></textarea></td>
	</tr>
	<tr>
		<td><{$lan.skip}></td>
		<td><textarea name="skip" cols="50" rows="5" style="width:100%"><{$rule.skip}></textarea></td>
	</tr>
	<tr>
		<td><{$lan.replace}></td>
		<td><textarea name="replace" cols="50" rows="5" style="width:100%"><{$rule.replace}></textarea></td>
	</tr>
	<tr>
		<td colspan="10" align="center"><input type="submit" value="<{$lan.save}>" name="submit"></td>
	</tr>
	</form>
</table>
</body>
</html>